package com.yuantu.judiciary.model.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.validator.constraints.Length;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
* 
* @TableName membership_card_account
*/
@Data
@Entity
@DynamicUpdate
@Table(name = "membership_card_account")
public class MembershipCardAccountDO {


    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
    * 账号id
    */
    @ApiModelProperty("账号id")
    private Long accountId;
    /**
    * 会员卡id
    */
    @ApiModelProperty("会员卡id")
    private Long membershipCardId;
    /**
    * 优惠金额
    */
    @ApiModelProperty("优惠金额")
    private Double discountFee;
    /**
    * 交易信息
    */
    @ApiModelProperty("交易信息")
    private String tradeNoInfos;
    /**
    * 过期时间
    */
    @ApiModelProperty("过期时间")
    private Date expireTime;



}
